package com.acitivity.oxigen;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

public class StartAct extends Activity{
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.start_layout);
		
		TabHost th = (TabHost) findViewById (R.id.tabhost); 
		th.setup();
		
		TabSpec specs = th.newTabSpec("tag1");
		specs.setContent(R.id.tab1);
		specs.setIndicator("BACKUP");
		th.addTab(specs);
		
		TabSpec specs1 = th.newTabSpec("tag2");
		specs1.setContent(R.id.tab2);
		specs1.setIndicator("RESTORE");
		th.addTab(specs1);
	}
	
	
	
	public void back(View view) {
		Intent i = new Intent(StartAct.this, MainActivity.class);
		startActivity(i);
		finish();
	}
}
